<template>
  <Layout>
    <PageHeader :title="title"></PageHeader>
    <div class="row">
      <div class="col-lg-12">
        <div class="card">
          <div class="card-body">
            <div class="row">
              <div class="col-md-3">
                <div class="media">
                  <div class="avatar-sm mr-3">
                    <span
                      class="
                        avatar-title
                        bg-light
                        rounded-circle
                        text-primary
                        font-size-24
                      "
                    >
                      <i class="ri-checkbox-circle-line"></i>
                    </span>
                  </div>
                  <div class="media-body align-self-center overflow-hidden">
                    <h5 @click="tolog1">最新未标记数据</h5>
                    <p class="text-muted mb-0">23.8万，昨日 89.1万</p>
                  </div>
                </div>
              </div>
              <div class="col-md-3">
                <div class="media mt-4 mt-md-0">
                  <div class="avatar-sm mr-3">
                    <span
                      class="
                        avatar-title
                        bg-light
                        rounded-circle
                        text-primary
                        font-size-24
                      "
                    >
                      <i class="ri-exchange-line"></i>
                    </span>
                  </div>
                  <div class="media-body align-self-center overflow-hidden">
                    <h5>最新标记数据</h5>
                    <p class="text-muted mb-0">75.4万条</p>
                  </div>
                </div>
              </div>
              <div class="col-md-3">
                <div class="media mt-4 mt-md-0">
                  <div class="avatar-sm mr-3">
                    <span
                      class="
                        avatar-title
                        bg-light
                        rounded-circle
                        text-primary
                        font-size-24
                      "
                    >
                      <i class="ri-price-tag-3-line"></i>
                    </span>
                  </div>
                  <div class="media-body align-self-center overflow-hidden">
                    <h5>系统标签数量</h5>
                    <p class="text-muted mb-0">1,862 个标签</p>
                  </div>
                </div>
              </div>
              <div class="col-md-3">
                <div class="media mt-4 mt-md-0">
                  <div class="avatar-sm mr-3">
                    <span
                      class="
                        avatar-title
                        bg-light
                        rounded-circle
                        text-primary
                        font-size-24
                      "
                    >
                      <i class="ri-money-dollar-circle-line"></i>
                    </span>
                  </div>
                  <div class="media-body align-self-center overflow-hidden">
                    <h5>修复标记数据</h5>
                    <p class="text-muted mb-0">230万条</p>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="card newstyle" style="padding-top: 20px; padding-bottom: 20px">
      <div class="row col-md-12">
        <div class="col-md-3">
          <div class="form-group row">
            <label class="col-md-4 padding-right col-form-label col-offset-1">应用类型</label>
            <div class="col-md-8">
              <select class="form-control .col-md-offset-2">
                <option>资讯数据</option>
                <option>工商数据</option>
                <option>招标数据</option>
                <option>招聘数据</option>
                <option>微信公众号</option>
                <option>短视频</option>
                <option>证券数据</option>
                <option>政府数据</option>
                <option>标准数据</option>
              </select>
            </div>
          </div>
        </div>
        <div class="col-md-3">
          <div class="form-group row">
            <label class="col-md-4 padding-right col-form-label">应用环境</label>
            <div class="col-md-8">
              <select class="form-control">
                <option>测试环境</option>
                <option>正式环境</option>
              </select>
            </div>
          </div>
        </div>
        <div class="col-md-6">
          <div class="form-group row">
            <label class="col-md-2 padding-right col-form-label">日期范围</label>
            <div class="col-md-10">
              <el-date-picker
                v-model="dateRange"
                type="datetimerange"
                :picker-options="pickerOptions"
                range-separator="至"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
                >
              </el-date-picker>
            </div>
          </div>
        </div>
      </div>
      <div class="row col-md-12" style="margin-left: 0px">
        <b-button variant="primary" style="margin-right: 10px;padding: 0rem 0.75rem;height: 32px;">
          <i class="ri-search-line align-middle mr-1"></i>搜索
        </b-button>
        <b-button variant="light" style="padding: 0rem 0.75rem;height: 32px;"> 重置 </b-button>
      </div>
    </div>
    <transaction></transaction>
  </Layout>
</template>

<script>
import Layout from "../../layouts/main";
import PageHeader from "@/components/page-header";
import transaction from "./transaction";
export default {
  data() {
    return {
      title: "标签管理",
      pickerOptions: {
        shortcuts: [
          {
            text: '最近一周',
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit('pick', [start, end]);
            }
          }, {
            text: '最近一个月',
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
              picker.$emit('pick', [start, end]);
            }
          }, {
            text: '最近三个月',
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
              picker.$emit('pick', [start, end]);
            }
          }
        ]
      },
      dateRange: '',
    };
  },
  components: {
    Layout,
    PageHeader,
    transaction,
  },
  methods:{
    tolog1(){
      // this.$router.push({name:'log'})
    }
  }
};
</script>
<style lang="scss" scoped>
.padding-right{
  padding-right: 0;
  padding-top: .2rem;
  padding-bottom: .2rem;
}
.row{
  .el-input__inner{
    width: 100%;
    height: 1.7rem;
    padding: 0rem 0.75rem;
    line-height: 1.7rem;
    ::v-deep .el-input__icon,::v-deep .el-range-separator{
      line-height: 1.7rem;
    }
  }
}
.newstyle{
  input,select{
    height: 1.7rem;
    padding: 0rem 0.75rem;
  }
}
.row{
  .col-md-3{
    .media{
      border-right: 1px solid #eeeeee;
    }
    .text-muted{
      font-size: 0.8rem;
    }
  }
  .col-md-3:last-child{
    .media{
      border-right: 0;
    }
  }
}
</style>

